/**
 * lodash中的curry
 */
import { curry } from "lodash"

// 使用curry的最终目的，将多元函数最终转为一元函数
const getSum = (a: number, b: number, c: number) => a + b + c
const curried = curry(getSum)

console.log(curried(1, 2, 3))
console.log(curried(1, 2)(3))
console.log(curried(1) (2, 3))
console.log(curried(1)(2)(3))

export {}
